import React, { Component } from "react";
import axios from "axios"
import "./App.css";
export default class App extends Component {

  getStudentData =() => {
    // let url = "https://hbrd.pkulaw.com/web/api/back/backDist/getEffectivenessCount"
    let url = "/api/back/backDist/getEffectivenessCount"
    axios.post(url, {pidLevel: 'XM07'}).then(res => {
      if(res) {
        console.log(res);
      }
    }).catch((err) => {
      console.error(err);
    })
  }

  getData = () => {

  }


  render() {
    return (
     <div className="content-box">
      <button onClick={this.getStudentData}>点我获取数据</button>
      <button onClick={this.getData}>点我数据库获取数据</button>
     </div>
    );
  }
}
